package org.truxingame.input;

public class GamePadCapabilities {
	GamePadType type;
	Buttons buttons;
	boolean connected=false;
	boolean leftMotor=false;
	boolean rightMotor=false;
	boolean leftX=false;
	boolean leftY=false;
	boolean rightX=false;
	boolean rightY=false;
	boolean voice=false;
	public boolean leftT=false;
	public boolean rightT=false;

	
	public GamePadType getGamePadType() {return type;}
	public boolean hasAButton() { return buttons.has(Buttons.A); }
	public boolean hasBackButton() { return buttons.has(Buttons.Back); }
	public boolean hasBButton() { return buttons.has(Buttons.B); }
	public boolean hasDPadDownButton() { return buttons.has(Buttons.DPadDown); }
	public boolean hasDPadLeftButton() { return  buttons.has(Buttons.DPadLeft);}
	public boolean hasDPadRightButton() { return buttons.has(Buttons.DPadRight); }
	public boolean hasDPadUpButton() { return buttons.has(Buttons.DPadUp); }
	public boolean hasLeftShoulderButton() { return buttons.has(Buttons.LeftShoulder); }
	public boolean hasLeftStickButton() { return leftX; }
	public boolean hasLeftTrigger() { return leftT; }
	public boolean hasLeftVibrationMotor() { return leftMotor; }
	public boolean hasLeftXThumbStick() { return leftX; }
	public boolean hasLeftYThumbStick() { return leftY; }
	public boolean hasRightShoulderButton() { return buttons.has(Buttons.RightShoulder); }
	public boolean hasRightStickButton() { return rightX; }
	public boolean hasRightTrigger() { return rightT; }
	public boolean hasRightVibrationMotor() { return rightMotor; }
	public boolean hasRightXThumbStick() { return rightX; }
	public boolean hasRightYThumbStick() { return rightY; }
	public boolean hasStartButton() { return buttons.has(Buttons.Start); }
	public boolean hasVoiceSupport() { return voice; }
	public boolean hasXButton() { return buttons.has(Buttons.X); }
	public boolean hasYButton() { return buttons.has(Buttons.Y); }
	public boolean IsConnected() { return connected; }
}
